@import "../../modules/sass/variables.scss";
.cart-session {
  h2 {
    height: 50px;
    font-size: 16px;
    color: #fff;
    text-align: center;
    line-height: 50px;
    background-color: $theme-color;
    font-weight: 400;
    i {
      display: inline-block;
      font-size: 24px;
      padding: 0 5px;
      line-height: 50px;
      vertical-align: top;
    }
  }
  nav {
    overflow: hidden;
    .select {
      color: #fff;
      background-color: #7a7a7a;
    }
    a {
      display: block;
      float: left;
      width: 50%;
      font-size: 16px;
      color: #3b3b3b;
      text-align: center;
      line-height: 50px;
      background-color: #c4c4c4;
    }
  }
}

.cart-session-detail {
  position: relative;
  border: 1px solid #e9e9e9;
  border-bottom: none;
  margin-top: 20px;
  box-shadow: 0 0 10px #cfcfcf;
}

.cart-session-common {
  h3 {
    position: relative;
    font-weight: 400;
    font-size: 16px;
    color: #2a2a2a;
    line-height: 26px;
    margin-bottom: 5px;
    padding-left: 10px;
    em {
      color: #1ac778;
    }
    .to-cart {
      position: absolute;
      right: 10px;
      top: 0;
      color: $theme-color;
      font-size: 14px;
      line-height: 26px;
    }
    i {
      font-size: 12px;
      color: $theme-color;
      padding-left: 5px;
    }
  }
  .right-cart-bottom {
    height: 68px;
    line-height: 68px;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    overflow: hidden;
    span {
      float: left;
      padding-left: 10px;
      font-size: 14px;
      i {
        color: $btn-color;
        font-size: 24px;
        vertical-align: bottom;
      }
    }
    button {
      float: right;
      height: 30px;
      padding: 0 10px;
      margin: 20px 22px 0 0;
      font-size: 14px;
      color: #fff;
      text-align: center;
      line-height: 30px;
      background-color: $btn-color;
      border-radius: 3px;
    }
  }
}

.sale-rental {
  margin-bottom: 60px;
  .right-cart-title {
    overflow: hidden;
    background-color: #f4f4f4;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    li {
      float: left;
      width: 16%;
      height: 38px;
      font-size: 14px;
      color: #858585;
      line-height: 38px;
      text-align: center;
    }
    .name-title {
      width: 90px;
    }
  }
  table td {
    width: 16.6%;
  }
  .num{
    width: 68px!important;
  }
  .product-name {
    display: inline-block;
    width: 73px;
    padding-left: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.purchase-cart {
  .right-cart-title {
    overflow: hidden;
    background-color: #f4f4f4;
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    li {
      float: left;
      width: 20%;
      height: 38px;
      font-size: 14px;
      color: #858585;
      line-height: 38px;
      text-align: center;
    }
  }
  table td {
    width: 20%;
  }
  .product-name {
    display: inline-block;
    width: 75px;
    height: 24px;
    line-height: 24px;
    padding-left: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .adapter-name {
    display: inline-block;
    width: 75px;
    padding-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.adapter-cart {
  .right-cart-title {
    li {
      width: 10%;
    }
    .product-title {
      width: 120px;
    }
    .adapter-title {
      width: 140px;
    }
  }
  table td {
    width: 10%;
  }
  .product-name {
    display: inline-block;
    width: 110px;
    padding-left: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .num{
    width: 100px!important;
    vertical-align: middle;
  }
  .adapter-name {
    display: inline-block;
    width: 135px;
    padding-left: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.right-cart-table-wrap {
  height: 92px;
  padding: 5px 0;
  overflow: hidden;
  table {
    width: 100%;
    td {
      display: inline-block;
      font-size: 12px;
      line-height: 24px;
      height: 24px;
      text-align: center;
      color: #2a2a2a;
    }
  }
  .num {
    font-size: 0;
    width: 90px;
    font-size: 0;
    input {
      border: 0 none;
      width: 25px;
      height: 14px;
      font-size: 14px;
      line-height: 14px;
      padding: 0 5px;
      text-align: center;
      vertical-align: middle;
    }
    a {
      display: inline-block;
      vertical-align: middle;
      font-size: 14px;
      line-height: 14px;
      color: $theme-color;
    }
    em {
      font-size: 14px;
      line-height: 14px;
      padding: 0 7px;
    }
  }
}

.cart-session-common:before {
  position: absolute;
  left: 22%;
  top: -16px;
  margin-left: 8px;
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-bottom: 16px solid #e9e9e9;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.cart-session-common:after {
  position: absolute;
  left: 22%;
  top: -12px;
  margin-left: 9px;
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-bottom: 14px solid #fff;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.arrow-right {
  position: relative;
  &:before {
    left: 72%;
  }
  &:after {
    left: 72%;
  }
}
